home *** CD-ROM | disk | FTP | other *** search
- function GetNavButtonHTML (strDir)
- {
- var strHTML='', varLabel='', varEventID='', varDrvID='', varWidth=' WIDTH=50 ', varHeight= 'HEIGHT=37 ',
- varDisplayIndex='80', varToolTip='', varBackgrnd="file:/Resources/CoreUI|CPanelBkgrnd.PNG" ;
-
- //SpencerP - 7/5/99 : New REPEATING BUTTON...
- var varButtonStyle=''; //SpencerP - 7/5/99
- var varRepeatDelay='', varInitialDelay=''; //SpencerP - 7/5/99 : default RepeatDay=250, InitialDelay=500
-
-
- switch (strDir)
- {
- case 'left' :
- varWidth = ' width=30 ' ;
- varHeight = ' height=30 ' ;
- varEventID = '0' ;
- varDisplayIndex= '87' ;
- varButtonStyle = 'REPEAT'; //SpencerP - 7/5/99
- varToolTip = 'Move Left' ;
- break ;
-
- case 'right' :
- varWidth = ' width=30 ' ;
- varHeight = ' height=30 ' ;
- varEventID = '1' ;
- varDisplayIndex= '88' ;
- varButtonStyle = 'REPEAT'; //SpencerP - 7/5/99
- varToolTip = 'Move Right' ;
- break ;
-
- case 'up' :
- varWidth = ' width=30 ' ;
- varHeight = ' height=30 ' ;
- varEventID = '2' ;
- varDisplayIndex= '89' ;
- varButtonStyle = 'REPEAT'; //SpencerP - 7/5/99
- varToolTip = 'Move Up' ;
- break ;
-
- case 'down' :
- varWidth = ' width=30 ' ;
- varHeight = ' height=30 ' ;
- varEventID = '3' ;
- varDisplayIndex= '90' ;
- varButtonStyle = 'REPEAT'; //SpencerP - 7/5/99
- varToolTip = 'Move Down' ;
- break ;
-
- case 'freehand' :
- varWidth = ' width=32 ' ;
- varHeight = ' height=32 ' ;
- // varLabel = 'FH' ;
- varDisplayIndex= '147' ;
- varEventID = '4' ;
- varToolTip = 'Turn on and off sizing handles to resize and rotate' ; //todo
- break ;
-
- case 'ccw' :
- varWidth = ' width=30 ' ;
- varHeight = ' height=30 ' ;
- varEventID = '5' ;
- varDisplayIndex= '91' ;
- varButtonStyle = 'REPEAT'; //SpencerP - 7/5/99
- varToolTip = 'Rotate left' ;
- break ;
-
- case 'cw' :
- varWidth = ' width=30 ' ;
- varHeight = ' height=30 ' ;
- varEventID = '6' ;
- varDisplayIndex= '92' ;
- varButtonStyle = 'REPEAT'; //SpencerP - 7/5/99
- varToolTip = 'Rotate right' ;
- break ;
-
- case 'smaller' :
- varWidth = ' width=30 ' ;
- varHeight = ' height=30 ' ;
- varEventID = '7' ;
- varDisplayIndex= '94' ;
- varButtonStyle = 'REPEAT'; //SpencerP - 7/5/99
- varToolTip = 'Decrease size' ;
- break ;
-
- case 'larger' :
- varWidth = ' width=30 ' ;
- varHeight = ' height=30 ' ;
- varEventID = '8' ;
- varDisplayIndex= '93' ;
- varButtonStyle = 'REPEAT'; //SpencerP - 7/5/99
- varToolTip = 'Increase size' ;
- break ;
-
- case 'picker' :
- varWidth = ' width=25 ' ;
- varHeight = ' height=45 ' ;
- varEventID = '9' ;
- varDisplayIndex= '113' ;
- varToolTip = 'Color sampler to select color from the picture' ;
- break ;
-
- case 'smudge' :
- varWidth = ' width=85 ' ;
- varHeight = ' height=50 ' ;
- varEventID = '10' ;
- varDisplayIndex= '112' ;
- varToolTip = 'Sponge to blend makeup' ;
- break ;
-
- case 'towel' :
- varWidth = ' width=80 ' ;
- varHeight = ' height=70 ' ;
- varEventID = '11' ;
- varDisplayIndex= '56' ;
- varDrvID = 'CommandDispatcher,Active,5016' ;
- varToolTip = 'Tissue to remove makeup' ;
- break ;
-
- case 'remove' :
- varLabel = 'Remove' ;
- varWidth = ' width=80 ' ;
- varEventID = '12' ;
- varDrvID = 'CommandDispatcher,Active,5016' ;
- varToolTip = 'Tissue to remove makeup' ;
- break ;
-
- case 'delete' : // used only in the layout views
- varLabel = 'Remove' ;
- varWidth = ' width=80 ' ;
- varEventID = '13' ;
- varToolTip = 'Remove Item' ;
- break ;
-
- case 'close' :
- varLabel = 'Close' ;
- varWidth = ' width=90 ' ;
- varEventID = '100' ;
- break ;
-
- case 'main' :
- varDisplayIndex= '133' ;
- varWidth = ' width=169 ' ;
- varHeight = ' height=100 ' ;
- varEventID = '100' ;
- varToolTip = 'Return to main screen' ;
- break ;
-
- case 'obj_down' :
- varLabel = 'Back' ;
- varWidth = ' width=80 ' ;
- varDrvID = 'CommandDispatcher,Active,20107,0' ;
- varToolTip = 'Move accessory back' ;
- break ;
-
- case 'obj_up' :
- varLabel = 'Forward' ;
- varWidth = ' width=80 ' ;
- varDrvID = 'CommandDispatcher,Active,20106,0' ;
- varToolTip = 'Move accessory forward' ;
- break ;
-
- default :
- break ;
- }
-
- strHTML = "<OBJECT ID='TempButton'" + varWidth + varHeight ;
- strHTML += "< CLASSID='CLSID:4FA211A0-FD53-11d2-ACB6-0080C877D9B9'>" ;
- strHTML += "<PARAM NAME='DisplayID' VALUE='file:/Resources/WorkflowsComponent|Common|stdgui.wkf'>" ;
- strHTML += "<PARAM NAME='DisplayStep' VALUE=50>" ;
-
- // SpencerP - Button Style
- if (varButtonStyle != '')
- {
- strHTML += "<PARAM NAME='ButtonStyle' VALUE='" + varButtonStyle + "'>" ;
-
- if (varRepeatDelay != '') // If custom delay time, ...
- {
- strHTML += "<PARAM NAME='ButtonRepeatDelay' VALUE='" + varRepeatDelay + "'>" ;
- strHTML += "<PARAM NAME='ButtonInitialDelay' VALUE='" + varInitialDely + "'>" ;
- }
- }
-
- strHTML += "<PARAM NAME='NumStates' VALUE=4>" ;
-
- if (varDrvID == '')
- strHTML += "<PARAM NAME='EventID' VALUE=" + varEventID + ">" ;
- else
- {
- strHTML += "<PARAM NAME='DriverID' VALUE='" + varDrvID + "'>" ;
- if (varEventID == '')
- varEventID = 52347 ; // magic
- strHTML += "<PARAM NAME='EventID' VALUE=" + varEventID + ">" ;
- }
-
- if (varLabel != '')
- {
- strHTML += "<PARAM NAME='Label' VALUE='" + varLabel + "'>" ;
- if (varDisplayIndex != '80')
- {
- strHTML += "<PARAM NAME='LabelColor' VALUE='255,255,255'>" ;
- strHTML += "<PARAM NAME='DisplayIndex' VALUE=" + varDisplayIndex + ">" ;
- strHTML += "<PARAM NAME='ButtonStyle' VALUE='FIXED'>" ;
- }
- else
- strHTML += "<PARAM NAME='DisplayIndex' VALUE=80>" ;
- }
- else
- {
- strHTML += "<PARAM NAME='Label' VALUE=''>" ;
- strHTML += "<PARAM NAME='DisplayIndex' VALUE=" + varDisplayIndex + ">" ;
- strHTML += "<PARAM NAME='ButtonStyle' VALUE='FIXED'>" ;
- }
-
- strHTML += "<PARAM NAME='ToolTipString' VALUE='" + varToolTip + "'>" ;
- strHTML += "<PARAM NAME='BackgroundMoniker' VALUE='file:/" + top.gstrThemePath + top.gstrMenuImage + "'>>" ;
-
- strHTML += "</OBJECT>" ;
-
- return strHTML ;
- }
-
- /*
- * Used when the Accessories pages are in use
- */
- function GetAccNavButtonHTML (strDir)
- {
- var strHTML='', varLabel='', varEventID='', varDriverID='', varDisplayIdx='80', varTooltip='' ;
-
- switch (strDir)
- {
- case 'eyewear' :
- varEventID = '0' ;
- varDriverID = 'file:/Resources/WorkflowsComponent|Props|MakeOverProps.wkf,60,0' ;
- varDisplayIdx= 103 ;
- varTooltip = 'Try on eyewear' ;
- break ;
-
- case 'headgear' :
- varEventID = '1' ;
- varDriverID = 'file:/Resources/WorkflowsComponent|Props|MakeOverProps.wkf,60,1' ;
- varDisplayIdx= 104 ;
- varTooltip = 'Try on hats' ;
- break ;
-
- case 'jewelry' :
- varEventID = '2' ;
- varDriverID = 'file:/Resources/WorkflowsComponent|Props|MakeOverProps.wkf,60,2' ;
- varDisplayIdx= 105 ;
- varTooltip = 'Try on jewelry, hair accents and piercings' ;
- break ;
-
- case 'tattoos' :
- varEventID = '3' ;
- varDriverID = 'file:/Resources/WorkflowsComponent|Props|MakeOverProps.wkf,60,3' ;
- varDisplayIdx= 106 ;
- varTooltip = 'Try on tattoos' ;
- break ;
-
- case 'help' :
- varEventID = '5' ;
- varDisplayIdx= '45';
- varTooltip = 'Online help' ;
- break ;
-
- default :
- return strHTML = "" ;
- }
-
- strHTML = "<OBJECT ID='AccessoryButton' WIDTH=76 HEIGHT=56 ALIGN=Top" ;
- strHTML += "< CLASSID='CLSID:4FA211A0-FD53-11d2-ACB6-0080C877D9B9'>" ;
- strHTML += "<PARAM NAME='DisplayID' VALUE='file:/Resources/WorkflowsComponent|Common|stdgui.wkf'>" ;
- strHTML += "<PARAM NAME='DisplayStep' VALUE=50>" ;
- strHTML += "<PARAM NAME='NumStates' VALUE=4>" ;
- strHTML += "<PARAM NAME='DisplayIndex' VALUE='" + varDisplayIdx + "'>" ;
- strHTML += "<PARAM NAME='EventID' VALUE=" + varEventID + ">" ;
- strHTML += "<PARAM NAME='Label' VALUE='" + varLabel + "'>" ;
- strHTML += "<PARAM NAME='ToolTipString' VALUE='" + varTooltip + "'>" ;
-
- if (strDir != 'help')
- {
- strHTML += "<PARAM NAME='DriverID' VALUE='" + varDriverID + "'>" ;
- strHTML += "<PARAM NAME='ButtonStyle' VALUE='RADIO'>" ;
- strHTML += "<PARAM NAME='StateDriverID' VALUE='file:/Resources/WorkflowsComponent|Props|MakeOverProps.wkf'>" ;
- strHTML += "<PARAM NAME='StateDriverStep' VALUE=60>" ;
- }
- strHTML += "<PARAM NAME='HelpContext' VALUE='Photos.chm,600'>" ;
- strHTML += "<PARAM NAME='BackgroundMoniker' VALUE='file:/Resources/Decor/navbar_acc.PNG'>>" ;
- strHTML += "</OBJECT>" ;
-
- return strHTML ;
- }
-
- function GetMyColorsButtonHTML ()
- {
- var strHTML = "" ;
-
- strHTML += "<OBJECT ID='MyColorButton' WIDTH=145 HEIGHT=40 ALIGN=Top" ;
- strHTML += "< CLASSID='CLSID:4FA211A0-FD53-11d2-ACB6-0080C877D9B9'>" ;
- strHTML += "<PARAM NAME='DisplayID' VALUE='file:/Resources/WorkflowsComponent|Common|stdgui.wkf'>" ;
- strHTML += "<PARAM NAME='DisplayStep' VALUE=50>" ;
- strHTML += "<PARAM NAME='DisplayIndex' VALUE=80>" ;
- strHTML += "<PARAM NAME='NumStates' VALUE=4>" ;
- strHTML += "<PARAM NAME='Label' VALUE='Add to My Colors'>" ;
- strHTML += "<PARAM NAME='EventID' VALUE=0>" ;
- strHTML += "<PARAM NAME='VJustification' VALUE='bottom'>" ;
- strHTML += "<PARAM NAME='ToolTipString' VALUE='Add current color to My Colors palette'>" ;
- strHTML += "<PARAM NAME='BackgroundMoniker' VALUE='file:/Resources/Decor/Panel_Mkv.PNG'>>" ;
- strHTML += "</OBJECT>" ;
-
- return strHTML ;
- }
-
- function GetTweezerButtonsHTML ()
- {
- var strHTML = "" ;
-
- strHTML += "<OBJECT ID='TweezerButton' WIDTH=150 HEIGHT=36 ALIGN=Top" ;
- strHTML += "< CLASSID='CLSID:4FA211A0-FD53-11d2-ACB6-0080C877D9B9'>" ;
- strHTML += "<PARAM NAME='DisplayID' VALUE='file:/Resources/WorkflowsComponent|Common|stdgui.wkf'>" ;
- strHTML += "<PARAM NAME='DisplayStep' VALUE=50>" ;
- strHTML += "<PARAM NAME='DisplayIndex' VALUE=80>" ;
- strHTML += "<PARAM NAME='NumStates' VALUE=4>" ;
- strHTML += "<PARAM NAME='Label' VALUE='Tweeze from above'>" ;
- strHTML += "<PARAM NAME='EventID' VALUE=0>" ;
- strHTML += "<PARAM NAME='DriverID' VALUE='CommandDispatcher,Active,5005,5,0'>" ;
- strHTML += "<PARAM NAME='ToolTipString' VALUE='Tweeze brows from above'>" ;
- strHTML += "<PARAM NAME='BackgroundMoniker' VALUE='file:/Resources/Decor/Panel_Mkv.PNG'>>" ;
- strHTML += "</OBJECT>" ;
-
- strHTML += "<OBJECT ID='TweezerButton' WIDTH=150 HEIGHT=36 ALIGN=Top" ;
- strHTML += "< CLASSID='CLSID:4FA211A0-FD53-11d2-ACB6-0080C877D9B9'>" ;
- strHTML += "<PARAM NAME='DisplayID' VALUE='file:/Resources/WorkflowsComponent|Common|stdgui.wkf'>" ;
- strHTML += "<PARAM NAME='DisplayStep' VALUE=50>" ;
- strHTML += "<PARAM NAME='DisplayIndex' VALUE=80>" ;
- strHTML += "<PARAM NAME='NumStates' VALUE=4>" ;
- strHTML += "<PARAM NAME='Label' VALUE='Tweeze from below'>" ;
- strHTML += "<PARAM NAME='EventID' VALUE=1>" ;
- strHTML += "<PARAM NAME='DriverID' VALUE='CommandDispatcher,Active,5005,4294967291,0'>" ;
- strHTML += "<PARAM NAME='ToolTipString' VALUE='Tweeze brows from below'>" ;
- strHTML += "<PARAM NAME='BackgroundMoniker' VALUE='file:/Resources/Decor/Panel_Mkv.PNG'>>" ;
- strHTML += "</OBJECT>" ;
-
- return strHTML ;
- }
-